<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post">
    {% csrf_token %}
    <h2>登录界面</h2>
    <input name="username" type="text" id="inputUsername" placeholder="用户名" required autofocus>
    <br>
    <input name="password" type="password" id="inputPassword" placeholder="密码" required>
    <br>
    <input type="radio" id="1" name="role">学生
    <input type="radio" id="2" name="role">老师
    <br>
    <a href="{% url 'zhu' %}">注册</a>
    <button type="submit">登录</button>
</form>
</body>
</html>